package com.chuangjiangx.member.manager.basic.web.controller;

import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.redis.core.StringRedisTemplate;


/**
 * Created by junn on 16-4-24.
 */
@Slf4j
public class BaseController {


    @Autowired
    private StringRedisTemplate redisTemplate;


    public static final String SESSION_USER = "session.user";
    public static final String SESSION_USER_COMPONENTS = "session.user.components";


    /**
     * 处理当导出Excel位数过长时添加制表符，能够屏蔽excel中的科学计数法。
     * 否则将出现导出的数字不能完整显示
     * @param excelStr
     * @return
     */
    protected String getCompleteExcelString(String excelStr){
        return excelStr+"\t";
    }

    /**
     * 忘记密码
     */
    public static final String FORGOT_PWD = "session.forgot";
    /**
     * 产品定义默认支持导出数据为10000
     */
    protected static final int EXPORT_SIZE = 10000;


}
